package com.pactera.demo.base.mapper;

import com.pactera.demo.base.dto.RoleResource;
import com.pactera.demo.base.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 * 角色定义表 Mapper 接口
 * </p>
 *
 * @author mybatis.plus
 * @since 2020-02-27
 */
public interface RoleMapper extends BaseMapper<Role> {

    void insertRoleResource(RoleResource x);

    Set<String> selectRoleCodesByPatten(@Param("pattern") String pattern, @Param("method") String method);
}
